package com.project.bean;

import java.time.LocalDate;

/**
 * 邮箱实体类
 */
public class EmailBean {
    //邮箱id
    private Integer emailId;
    //主题
    private String title;
    //内容
    private String content;
    //附件地址
    private String url;
    //发送日期
    private LocalDate sendDate = LocalDate.now();
    //收件人
    private String getPeople;
    //是否有效
    private String state = "有效";
    //发件人
    private UserBean userBean ;

    public EmailBean() {
    }

    public EmailBean(String title, String content, String url, LocalDate sendDate, String getPeople, String state, UserBean userBean) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
        this.getPeople = getPeople;
        this.state = state;
        this.userBean = userBean;
    }

    public EmailBean(String title, String content, String url, LocalDate sendDate,UserBean userBean ){
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
        this.userBean = userBean;
    }




    public Integer getEmailId() {
        return emailId;
    }

    public void setEmailId(Integer emailId) {
        this.emailId = emailId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public LocalDate getSendDate() {
        return sendDate;
    }

    public void setSendDate(LocalDate sendDate) {
        this.sendDate = sendDate;
    }

    public String getGetPeople() {
        return getPeople;
    }

    public void setGetPeople(String getPeople) {
        this.getPeople = getPeople;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }

    @Override
    public String toString() {
        return "EmailBean{" +
                "emailId=" + emailId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", sendDate=" + sendDate +
                ", getPeople='" + getPeople + '\'' +
                ", state='" + state + '\'' +
                ", userBean=" + userBean +
                '}';
    }
}
